home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGNG_C / UCW110.LZH / UC_ATT.H < prev    next >
Text File  |  1987-10-21  |  8KB  |  203 lines

  1. /*************************************************************************
  2.  *                                 uc_att.h                              *
  3.  *                                                                       *
  4.  *   This header file defines the attribute system used by Unicorn       *
  5.  *   Software products.                                                  *
  6.  *                                                                       *
  7.  *                                                                       *
  8.  *                           Copyright (c) 1987 by                       *
  9.  *                             David A.  Miller                          *
  10.  *                             Unicorn Software                          *
  11.  *                                                                       *
  12.  *************************************************************************/
  13.  
  14.  
  15.  
  16.  
  17. #define BLACK        0
  18. #define BLUE        1
  19. #define GREEN        2
  20. #define CYAN        3
  21. #define RED           4
  22. #define MAGENTA   5
  23. #define BROWN        6
  24. #define GRAY        7
  25. #define DKGRAY        8
  26. #define LTBLUE        9
  27. #define LTGREEN    10
  28. #define LTCYAN        11
  29. #define LTRED        12
  30. #define LTMAGENTA 13
  31. #define YELLOW        14
  32. #define WHITE        15
  33.  
  34. #define mk_att(fore,back) ((back<<4)+(fore)
  35.  
  36. #define NORMAL         0x007
  37. #define REVERSE        0x070
  38. #define UNDERLINE     0x001
  39. #define HIGH_INT       0x008
  40. #define BLINK            0x080
  41.  
  42. #define MESSAGE        16
  43. #define ERROR           17
  44.  
  45.  
  46. int UCW_ATT[300][2] = {
  47.  
  48.                            {0x000, NORMAL },     /*   0   */
  49.                            {0x001, NORMAL },
  50.                            {0x002, NORMAL },
  51.                              {0x003, NORMAL },
  52.                              {0x004, NORMAL},
  53.                              {0x005, NORMAL },
  54.                              {0x006, NORMAL },
  55.                         {0x007, NORMAL },
  56.                         {0x008, NORMAL },
  57.                         {0x009, NORMAL },
  58.                         {0x00a, NORMAL },    /* 10 */
  59.                         {0x00b, NORMAL },
  60.                         {0x00c, NORMAL },
  61.                         {0x00d, NORMAL },
  62.                         {0x00e, NORMAL },
  63.                         {0x00f, NORMAL },
  64.  
  65.  
  66.                            {0x010, NORMAL },
  67.                            {0x011, NORMAL },
  68.                            {0x012, NORMAL },
  69.                              {0x013, NORMAL },
  70.                            {0x014, NORMAL},    /* 20 */
  71.                            {0x015, NORMAL },
  72.                            {0x016, NORMAL },
  73.                         {0x017, NORMAL },
  74.                         {0x018, NORMAL },
  75.                         {0x019, NORMAL },
  76.                         {0x01a, NORMAL },
  77.                         {0x01b, NORMAL },
  78.                         {0x01c, NORMAL },
  79.                         {0x01d, NORMAL },
  80.                         {0x01e, NORMAL },    /* 30 */
  81.                         {0x01f, NORMAL },
  82.  
  83.                            {0x020, NORMAL },
  84.                            {0x021, NORMAL },
  85.                            {0x022, NORMAL },
  86.                              {0x023, NORMAL },
  87.                            {0x024, NORMAL},
  88.                            {0x025, NORMAL },
  89.                            {0x026, NORMAL },
  90.                         {0x027, NORMAL },
  91.                         {0x028, NORMAL },     /* 40 */
  92.                         {0x029, NORMAL },
  93.                         {0x02a, NORMAL },
  94.                         {0x02b, NORMAL },
  95.                         {0x02c, NORMAL },
  96.                         {0x02d, NORMAL },
  97.                         {0x02e, NORMAL },
  98.                         {0x02f, NORMAL },
  99.  
  100.                            {0x030, NORMAL },
  101.                            {0x031, NORMAL },
  102.                            {0x032, NORMAL },     /* 50 */
  103.                            {0x033, NORMAL },
  104.                            {0x034, NORMAL},
  105.                            {0x035, NORMAL },
  106.                            {0x036, NORMAL },
  107.                         {0x037, NORMAL },
  108.                         {0x038, NORMAL },
  109.                         {0x039, NORMAL },
  110.                         {0x03a, NORMAL },
  111.                         {0x03b, NORMAL },
  112.                         {0x03c, NORMAL },     /* 60 */
  113.                         {0x03d, NORMAL },
  114.                         {0x03e, NORMAL },
  115.                         {0x03f, NORMAL },
  116.  
  117.                            {0x040, NORMAL },
  118.                            {0x041, NORMAL },
  119.                            {0x042, NORMAL },
  120.                            {0x043, NORMAL },
  121.                            {0x044, NORMAL},
  122.                            {0x045, NORMAL },
  123.                            {0x046, NORMAL },     /* 70 */
  124.                         {0x047, NORMAL },
  125.                         {0x048, NORMAL },
  126.                         {0x049, NORMAL },
  127.                         {0x04a, NORMAL },
  128.                         {0x04b, NORMAL },
  129.                         {0x04c, NORMAL },
  130.                         {0x04d, NORMAL },
  131.                         {0x04e, NORMAL },
  132.                         {0x04f, NORMAL },
  133.  
  134.                            {0x050, NORMAL },     /* 80 */
  135.                            {0x051, NORMAL },
  136.                            {0x052, NORMAL },
  137.                            {0x053, NORMAL },
  138.                            {0x054, NORMAL},
  139.                            {0x055, NORMAL },
  140.                            {0x056, NORMAL },
  141.                         {0x057, NORMAL },
  142.                         {0x058, NORMAL },
  143.                         {0x059, NORMAL },
  144.                         {0x05a, NORMAL },     /* 90 */
  145.                         {0x05b, NORMAL },
  146.                         {0x05c, NORMAL },
  147.                         {0x05d, NORMAL },
  148.                         {0x05e, NORMAL },
  149.                         {0x05f, NORMAL },
  150.  
  151.                            {0x060, NORMAL },
  152.                            {0x061, NORMAL },
  153.                            {0x062, NORMAL },
  154.                            {0x063, NORMAL },
  155.                            {0x064, NORMAL},     /* 100 */
  156.                            {0x065, NORMAL },
  157.                            {0x066, NORMAL },
  158.                         {0x067, NORMAL },
  159.                         {0x068, NORMAL },
  160.                         {0x069, NORMAL },
  161.                         {0x06a, NORMAL },
  162.                         {0x06b, NORMAL },
  163.                         {0x06c, NORMAL },
  164.                         {0x06d, NORMAL },
  165.                         {0x06e, NORMAL },      /* 110 */
  166.                         {0x06f, NORMAL },
  167.  
  168.                            {0x070, NORMAL },
  169.                            {0x071, NORMAL },
  170.                            {0x072, NORMAL },
  171.                              {0x073, NORMAL },
  172.                            {0x074, NORMAL},
  173.                            {0x075, NORMAL },
  174.                            {0x076, NORMAL },
  175.                         {0x077, NORMAL },
  176.                         {0x078, NORMAL },      /* 120 */
  177.                         {0x079, NORMAL },
  178.                         {0x07a, NORMAL },
  179.                         {0x07b, NORMAL },
  180.                         {0x07c, NORMAL },
  181.                         {0x07d, NORMAL },
  182.                         {0x07e, NORMAL },
  183.                         {0x07f, NORMAL },      /* 127 */
  184.                                                /*  Unicorn software
  185.                                                    reserves the array
  186.                                                    positions up to 150.
  187.                                                    If you wish to add
  188.                                                    your own attributes
  189.                                                    please start with
  190.                                                    entry 150 to avoid
  191.                                                    conflict with future
  192.                                                    revisions.          */
  193.                       };
  194.  
  195.  
  196. int ucw_att[300];
  197.  
  198.  
  199.  
  200. int ucv_mode;
  201. int ucv_width;
  202. int ucv_page;
  203.